/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.hellodoctor.slayer.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.hellodoctor.slayer.service.http.ProfileServiceSoap}.
 *
 * @author Shahbaj
 * @see com.hellodoctor.slayer.service.http.ProfileServiceSoap
 * @generated
 */
public class ProfileSoap implements Serializable {
	public static ProfileSoap toSoapModel(Profile model) {
		ProfileSoap soapModel = new ProfileSoap();

		soapModel.setProfileId(model.getProfileId());
		soapModel.setUserId(model.getUserId());
		soapModel.setIsDoctor(model.getIsDoctor());
		soapModel.setSpeciality(model.getSpeciality());
		soapModel.setQualification(model.getQualification());
		soapModel.setPracticingSince(model.getPracticingSince());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());

		return soapModel;
	}

	public static ProfileSoap[] toSoapModels(Profile[] models) {
		ProfileSoap[] soapModels = new ProfileSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static ProfileSoap[][] toSoapModels(Profile[][] models) {
		ProfileSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new ProfileSoap[models.length][models[0].length];
		}
		else {
			soapModels = new ProfileSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static ProfileSoap[] toSoapModels(List<Profile> models) {
		List<ProfileSoap> soapModels = new ArrayList<ProfileSoap>(models.size());

		for (Profile model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new ProfileSoap[soapModels.size()]);
	}

	public ProfileSoap() {
	}

	public long getPrimaryKey() {
		return _profileId;
	}

	public void setPrimaryKey(long pk) {
		setProfileId(pk);
	}

	public long getProfileId() {
		return _profileId;
	}

	public void setProfileId(long profileId) {
		_profileId = profileId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public boolean getIsDoctor() {
		return _isDoctor;
	}

	public boolean isIsDoctor() {
		return _isDoctor;
	}

	public void setIsDoctor(boolean isDoctor) {
		_isDoctor = isDoctor;
	}

	public int getSpeciality() {
		return _speciality;
	}

	public void setSpeciality(int speciality) {
		_speciality = speciality;
	}

	public int getQualification() {
		return _qualification;
	}

	public void setQualification(int qualification) {
		_qualification = qualification;
	}

	public int getPracticingSince() {
		return _practicingSince;
	}

	public void setPracticingSince(int practicingSince) {
		_practicingSince = practicingSince;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	private long _profileId;
	private long _userId;
	private boolean _isDoctor;
	private int _speciality;
	private int _qualification;
	private int _practicingSince;
	private Date _createDate;
	private Date _modifiedDate;
}